package com.mob.commons.logcollector;

import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.Base64;
import com.mob.tools.MobLog;
import com.mob.tools.SSDKHandlerThread;
import com.mob.tools.log.NLog;
import com.mob.tools.network.KVPair;
import com.mob.tools.network.NetworkHelper;
import com.mob.tools.network.NetworkHelper.NetworkTimeOut;
import com.mob.tools.utils.DeviceHelper;
import com.mob.tools.utils.FileLocker;
import com.mob.tools.utils.Hashon;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.zip.GZIPOutputStream;

public class c extends SSDKHandlerThread
{
  private static c a;
  private static String b = "http://api.exc.mob.com:80";
  private HashMap<String, Integer> c;
  private Context d;
  private DeviceHelper e;
  private NetworkHelper f;
  private d g;
  private File h;
  private FileLocker i;

  private c(Context paramContext)
  {
    this.d = paramContext.getApplicationContext();
    this.f = new NetworkHelper();
    this.e = DeviceHelper.getInstance(paramContext);
    this.g = d.a(paramContext);
    this.c = new HashMap();
    this.i = new FileLocker();
    this.h = new File(paramContext.getFilesDir(), ".lock");
    if (!this.h.exists());
    try
    {
      this.h.createNewFile();
      NLog.setContext(paramContext);
      startThread();
      return;
    }
    catch (Exception localException)
    {
      while (true)
        MobLog.getInstance().w(localException);
    }
  }

  public static c a(Context paramContext)
  {
    try
    {
      if (a == null)
        a = new c(paramContext);
      c localc = a;
      return localc;
    }
    finally
    {
    }
  }

  private String a(String paramString)
  {
    ByteArrayInputStream localByteArrayInputStream = new ByteArrayInputStream(paramString.getBytes());
    ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream();
    GZIPOutputStream localGZIPOutputStream = new GZIPOutputStream(localByteArrayOutputStream);
    byte[] arrayOfByte1 = new byte[1024];
    while (true)
    {
      int j = localByteArrayInputStream.read(arrayOfByte1, 0, 1024);
      if (j == -1)
        break;
      localGZIPOutputStream.write(arrayOfByte1, 0, j);
    }
    localGZIPOutputStream.flush();
    localGZIPOutputStream.close();
    byte[] arrayOfByte2 = localByteArrayOutputStream.toByteArray();
    localByteArrayOutputStream.flush();
    localByteArrayOutputStream.close();
    localByteArrayInputStream.close();
    return Base64.encodeToString(arrayOfByte2, 2);
  }

  private void a(int paramInt, String paramString1, String paramString2, String[] paramArrayOfString)
  {
    try
    {
      if (!this.g.b())
        return;
      if ("none".equals(this.e.getDetailNetworkTypeForStatic()))
        throw new IllegalStateException("network is disconnected!");
    }
    catch (Throwable localThrowable)
    {
      MobLog.getInstance().i(localThrowable);
      return;
    }
    ArrayList localArrayList = f.a(this.d, paramArrayOfString);
    for (int j = 0; j < localArrayList.size(); j++)
    {
      e locale = (e)localArrayList.get(j);
      HashMap localHashMap = c(paramInt, paramString1, paramString2);
      localHashMap.put("errmsg", locale.a);
      if (a(a(new Hashon().fromHashMap(localHashMap)), true))
        f.a(this.d, locale.b);
    }
  }

  private void a(Message paramMessage)
  {
    this.handler.sendMessageDelayed(paramMessage, 1000L);
  }

  private boolean a(String paramString, boolean paramBoolean)
  {
    try
    {
      if ("none".equals(this.e.getDetailNetworkTypeForStatic()))
        throw new IllegalStateException("network is disconnected!");
    }
    catch (Throwable localThrowable)
    {
      MobLog.getInstance().i(localThrowable);
      return false;
    }
    ArrayList localArrayList = new ArrayList();
    localArrayList.add(new KVPair("m", paramString));
    NetworkHelper.NetworkTimeOut localNetworkTimeOut = new NetworkHelper.NetworkTimeOut();
    localNetworkTimeOut.readTimout = 10000;
    localNetworkTimeOut.connectionTimeout = 10000;
    this.f.httpPost(c(), localArrayList, null, null, localNetworkTimeOut);
    return true;
  }

  private String b()
  {
    return b + "/errconf";
  }

  // ERROR //
  private void b(int paramInt, String paramString1, String paramString2)
  {
    // Byte code:
    //   0: new 192	java/util/ArrayList
    //   3: dup
    //   4: invokespecial 245	java/util/ArrayList:<init>	()V
    //   7: astore 4
    //   9: aload 4
    //   11: new 247	com/mob/tools/network/KVPair
    //   14: dup
    //   15: ldc_w 286
    //   18: aload_3
    //   19: invokespecial 252	com/mob/tools/network/KVPair:<init>	(Ljava/lang/String;Ljava/lang/Object;)V
    //   22: invokevirtual 255	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   25: pop
    //   26: aload 4
    //   28: new 247	com/mob/tools/network/KVPair
    //   31: dup
    //   32: ldc_w 288
    //   35: aload_2
    //   36: invokespecial 252	com/mob/tools/network/KVPair:<init>	(Ljava/lang/String;Ljava/lang/Object;)V
    //   39: invokevirtual 255	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   42: pop
    //   43: aload 4
    //   45: new 247	com/mob/tools/network/KVPair
    //   48: dup
    //   49: ldc_w 290
    //   52: aload_0
    //   53: getfield 56	com/mob/commons/logcollector/c:e	Lcom/mob/tools/utils/DeviceHelper;
    //   56: invokevirtual 293	com/mob/tools/utils/DeviceHelper:getPackageName	()Ljava/lang/String;
    //   59: invokespecial 252	com/mob/tools/network/KVPair:<init>	(Ljava/lang/String;Ljava/lang/Object;)V
    //   62: invokevirtual 255	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   65: pop
    //   66: aload 4
    //   68: new 247	com/mob/tools/network/KVPair
    //   71: dup
    //   72: ldc_w 295
    //   75: aload_0
    //   76: getfield 56	com/mob/commons/logcollector/c:e	Lcom/mob/tools/utils/DeviceHelper;
    //   79: invokevirtual 298	com/mob/tools/utils/DeviceHelper:getAppVersion	()I
    //   82: invokestatic 302	java/lang/String:valueOf	(I)Ljava/lang/String;
    //   85: invokespecial 252	com/mob/tools/network/KVPair:<init>	(Ljava/lang/String;Ljava/lang/Object;)V
    //   88: invokevirtual 255	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   91: pop
    //   92: aload 4
    //   94: new 247	com/mob/tools/network/KVPair
    //   97: dup
    //   98: ldc_w 304
    //   101: iload_1
    //   102: invokestatic 302	java/lang/String:valueOf	(I)Ljava/lang/String;
    //   105: invokespecial 252	com/mob/tools/network/KVPair:<init>	(Ljava/lang/String;Ljava/lang/Object;)V
    //   108: invokevirtual 255	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   111: pop
    //   112: aload 4
    //   114: new 247	com/mob/tools/network/KVPair
    //   117: dup
    //   118: ldc_w 306
    //   121: aload_0
    //   122: getfield 56	com/mob/commons/logcollector/c:e	Lcom/mob/tools/utils/DeviceHelper;
    //   125: invokevirtual 309	com/mob/tools/utils/DeviceHelper:getPlatformCode	()I
    //   128: invokestatic 302	java/lang/String:valueOf	(I)Ljava/lang/String;
    //   131: invokespecial 252	com/mob/tools/network/KVPair:<init>	(Ljava/lang/String;Ljava/lang/Object;)V
    //   134: invokevirtual 255	java/util/ArrayList:add	(Ljava/lang/Object;)Z
    //   137: pop
    //   138: new 257	com/mob/tools/network/NetworkHelper$NetworkTimeOut
    //   141: dup
    //   142: invokespecial 258	com/mob/tools/network/NetworkHelper$NetworkTimeOut:<init>	()V
    //   145: astore 11
    //   147: aload 11
    //   149: sipush 10000
    //   152: putfield 262	com/mob/tools/network/NetworkHelper$NetworkTimeOut:readTimout	I
    //   155: aload 11
    //   157: sipush 10000
    //   160: putfield 265	com/mob/tools/network/NetworkHelper$NetworkTimeOut:connectionTimeout	I
    //   163: aload_0
    //   164: getfield 48	com/mob/commons/logcollector/c:f	Lcom/mob/tools/network/NetworkHelper;
    //   167: aload_0
    //   168: invokespecial 311	com/mob/commons/logcollector/c:b	()Ljava/lang/String;
    //   171: aload 4
    //   173: aconst_null
    //   174: aconst_null
    //   175: aload 11
    //   177: invokevirtual 271	com/mob/tools/network/NetworkHelper:httpPost	(Ljava/lang/String;Ljava/util/ArrayList;Lcom/mob/tools/network/KVPair;Ljava/util/ArrayList;Lcom/mob/tools/network/NetworkHelper$NetworkTimeOut;)Ljava/lang/String;
    //   180: astore 14
    //   182: invokestatic 106	com/mob/tools/MobLog:getInstance	()Lcom/mob/tools/log/NLog;
    //   185: ldc_w 313
    //   188: iconst_1
    //   189: anewarray 315	java/lang/Object
    //   192: dup
    //   193: iconst_0
    //   194: aload 14
    //   196: aastore
    //   197: invokevirtual 318	com/mob/tools/log/NLog:i	(Ljava/lang/Object;[Ljava/lang/Object;)I
    //   200: pop
    //   201: new 216	com/mob/tools/utils/Hashon
    //   204: dup
    //   205: invokespecial 217	com/mob/tools/utils/Hashon:<init>	()V
    //   208: aload 14
    //   210: invokevirtual 322	com/mob/tools/utils/Hashon:fromJson	(Ljava/lang/String;)Ljava/util/HashMap;
    //   213: astore 16
    //   215: ldc_w 324
    //   218: aload 16
    //   220: ldc_w 326
    //   223: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   226: invokestatic 332	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   229: invokevirtual 176	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   232: ifeq +18 -> 250
    //   235: invokestatic 106	com/mob/tools/MobLog:getInstance	()Lcom/mob/tools/log/NLog;
    //   238: ldc_w 334
    //   241: iconst_0
    //   242: anewarray 315	java/lang/Object
    //   245: invokevirtual 318	com/mob/tools/log/NLog:i	(Ljava/lang/Object;[Ljava/lang/Object;)I
    //   248: pop
    //   249: return
    //   250: aload 16
    //   252: ldc_w 336
    //   255: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   258: astore 17
    //   260: aload 17
    //   262: ifnull +413 -> 675
    //   265: aload 17
    //   267: instanceof 65
    //   270: ifeq +405 -> 675
    //   273: aload 17
    //   275: checkcast 65	java/util/HashMap
    //   278: astore 18
    //   280: aload 18
    //   282: ldc_w 338
    //   285: invokevirtual 341	java/util/HashMap:containsKey	(Ljava/lang/Object;)Z
    //   288: istore 19
    //   290: iload 19
    //   292: ifeq +36 -> 328
    //   295: aload 18
    //   297: ldc_w 338
    //   300: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   303: invokestatic 332	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   306: invokestatic 347	com/mob/tools/utils/R:parseLong	(Ljava/lang/String;)J
    //   309: lstore 33
    //   311: invokestatic 353	java/lang/System:currentTimeMillis	()J
    //   314: lload 33
    //   316: lsub
    //   317: lstore 35
    //   319: aload_0
    //   320: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   323: lload 35
    //   325: invokevirtual 356	com/mob/commons/logcollector/d:a	(J)V
    //   328: ldc_w 358
    //   331: aload 18
    //   333: ldc_w 360
    //   336: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   339: invokestatic 332	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   342: invokevirtual 176	java/lang/String:equals	(Ljava/lang/Object;)Z
    //   345: ifeq +319 -> 664
    //   348: aload_0
    //   349: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   352: iconst_1
    //   353: invokevirtual 363	com/mob/commons/logcollector/d:a	(Z)V
    //   356: aload 18
    //   358: ldc_w 365
    //   361: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   364: astore 20
    //   366: aload 20
    //   368: ifnull +93 -> 461
    //   371: aload 20
    //   373: instanceof 65
    //   376: ifeq +85 -> 461
    //   379: aload 20
    //   381: checkcast 65	java/util/HashMap
    //   384: astore 27
    //   386: aload 27
    //   388: ldc_w 367
    //   391: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   394: invokestatic 332	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   397: astore 28
    //   399: aload 27
    //   401: ldc_w 369
    //   404: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   407: invokestatic 332	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   410: astore 29
    //   412: aload 27
    //   414: ldc_w 371
    //   417: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   420: invokestatic 332	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   423: astore 30
    //   425: aload_0
    //   426: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   429: aload 28
    //   431: invokestatic 377	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   434: invokevirtual 380	com/mob/commons/logcollector/d:a	(I)V
    //   437: aload_0
    //   438: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   441: aload 29
    //   443: invokestatic 377	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   446: invokevirtual 382	com/mob/commons/logcollector/d:b	(I)V
    //   449: aload_0
    //   450: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   453: aload 30
    //   455: invokestatic 377	java/lang/Integer:parseInt	(Ljava/lang/String;)I
    //   458: invokevirtual 384	com/mob/commons/logcollector/d:c	(I)V
    //   461: aload 18
    //   463: ldc_w 386
    //   466: invokevirtual 341	java/util/HashMap:containsKey	(Ljava/lang/Object;)Z
    //   469: ifeq +91 -> 560
    //   472: aload 18
    //   474: ldc_w 388
    //   477: invokevirtual 341	java/util/HashMap:containsKey	(Ljava/lang/Object;)Z
    //   480: ifeq +80 -> 560
    //   483: aload 18
    //   485: ldc_w 386
    //   488: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   491: invokestatic 332	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   494: astore 25
    //   496: aload 18
    //   498: ldc_w 388
    //   501: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   504: invokestatic 332	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   507: astore 26
    //   509: aload 25
    //   511: invokestatic 394	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   514: ifne +46 -> 560
    //   517: aload 26
    //   519: invokestatic 394	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   522: ifne +38 -> 560
    //   525: new 273	java/lang/StringBuilder
    //   528: dup
    //   529: invokespecial 274	java/lang/StringBuilder:<init>	()V
    //   532: ldc_w 396
    //   535: invokevirtual 278	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   538: aload 25
    //   540: invokevirtual 278	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   543: ldc_w 398
    //   546: invokevirtual 278	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   549: aload 26
    //   551: invokevirtual 278	java/lang/StringBuilder:append	(Ljava/lang/String;)Ljava/lang/StringBuilder;
    //   554: invokevirtual 283	java/lang/StringBuilder:toString	()Ljava/lang/String;
    //   557: putstatic 29	com/mob/commons/logcollector/c:b	Ljava/lang/String;
    //   560: aload 18
    //   562: ldc_w 400
    //   565: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   568: astore 21
    //   570: aload 21
    //   572: ifnull +103 -> 675
    //   575: aload 21
    //   577: instanceof 192
    //   580: ifeq +95 -> 675
    //   583: aload 21
    //   585: checkcast 192	java/util/ArrayList
    //   588: astore 22
    //   590: aload 22
    //   592: invokevirtual 196	java/util/ArrayList:size	()I
    //   595: ifle +80 -> 675
    //   598: new 65	java/util/HashMap
    //   601: dup
    //   602: invokespecial 66	java/util/HashMap:<init>	()V
    //   605: astore 23
    //   607: aload 23
    //   609: ldc_w 402
    //   612: aload 22
    //   614: invokevirtual 214	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   617: pop
    //   618: aload_0
    //   619: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   622: new 216	com/mob/tools/utils/Hashon
    //   625: dup
    //   626: invokespecial 217	com/mob/tools/utils/Hashon:<init>	()V
    //   629: aload 23
    //   631: invokevirtual 221	com/mob/tools/utils/Hashon:fromHashMap	(Ljava/util/HashMap;)Ljava/lang/String;
    //   634: invokevirtual 404	com/mob/commons/logcollector/d:a	(Ljava/lang/String;)V
    //   637: return
    //   638: astore 12
    //   640: invokestatic 106	com/mob/tools/MobLog:getInstance	()Lcom/mob/tools/log/NLog;
    //   643: aload 12
    //   645: invokevirtual 406	com/mob/tools/log/NLog:d	(Ljava/lang/Throwable;)I
    //   648: pop
    //   649: return
    //   650: astore 31
    //   652: invokestatic 106	com/mob/tools/MobLog:getInstance	()Lcom/mob/tools/log/NLog;
    //   655: aload 31
    //   657: invokevirtual 185	com/mob/tools/log/NLog:i	(Ljava/lang/Throwable;)I
    //   660: pop
    //   661: goto -333 -> 328
    //   664: aload_0
    //   665: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   668: iconst_0
    //   669: invokevirtual 363	com/mob/commons/logcollector/d:a	(Z)V
    //   672: goto -316 -> 356
    //   675: return
    //
    // Exception table:
    //   from	to	target	type
    //   138	249	638	java/lang/Throwable
    //   250	260	638	java/lang/Throwable
    //   265	290	638	java/lang/Throwable
    //   328	356	638	java/lang/Throwable
    //   356	366	638	java/lang/Throwable
    //   371	461	638	java/lang/Throwable
    //   461	560	638	java/lang/Throwable
    //   560	570	638	java/lang/Throwable
    //   575	637	638	java/lang/Throwable
    //   652	661	638	java/lang/Throwable
    //   664	672	638	java/lang/Throwable
    //   295	328	650	java/lang/Throwable
  }

  private void b(Message paramMessage)
  {
    try
    {
      int j = paramMessage.arg1;
      Object[] arrayOfObject = (Object[])paramMessage.obj;
      String str1 = (String)arrayOfObject[0];
      String str2 = (String)arrayOfObject[1];
      b(j, str1, str2);
      a(j, str1, str2, null);
      return;
    }
    catch (Throwable localThrowable)
    {
      MobLog.getInstance().w(localThrowable);
    }
  }

  private String c()
  {
    return b + "/errlog";
  }

  private HashMap<String, Object> c(int paramInt, String paramString1, String paramString2)
  {
    HashMap localHashMap = new HashMap();
    localHashMap.put("key", paramString2);
    localHashMap.put("plat", Integer.valueOf(this.e.getPlatformCode()));
    localHashMap.put("sdk", paramString1);
    localHashMap.put("sdkver", Integer.valueOf(paramInt));
    localHashMap.put("appname", this.e.getAppName());
    localHashMap.put("apppkg", this.e.getPackageName());
    localHashMap.put("appver", String.valueOf(this.e.getAppVersion()));
    localHashMap.put("deviceid", this.e.getDeviceKey());
    localHashMap.put("model", this.e.getModel());
    localHashMap.put("mac", this.e.getMacAddress());
    localHashMap.put("udid", this.e.getDeviceId());
    localHashMap.put("sysver", String.valueOf(this.e.getOSVersionInt()));
    localHashMap.put("networktype", this.e.getDetailNetworkTypeForStatic());
    return localHashMap;
  }

  // ERROR //
  private void c(Message paramMessage)
  {
    // Byte code:
    //   0: aload_1
    //   1: getfield 411	android/os/Message:arg1	I
    //   4: istore 4
    //   6: aload_1
    //   7: getfield 415	android/os/Message:obj	Ljava/lang/Object;
    //   10: checkcast 417	[Ljava/lang/Object;
    //   13: checkcast 417	[Ljava/lang/Object;
    //   16: astore 5
    //   18: aload 5
    //   20: iconst_0
    //   21: aaload
    //   22: checkcast 120	java/lang/String
    //   25: astore 6
    //   27: aload 5
    //   29: iconst_1
    //   30: aaload
    //   31: checkcast 120	java/lang/String
    //   34: astore 7
    //   36: aload 5
    //   38: iconst_2
    //   39: aaload
    //   40: checkcast 120	java/lang/String
    //   43: astore 8
    //   45: iconst_1
    //   46: istore 9
    //   48: aload_1
    //   49: getfield 461	android/os/Message:arg2	I
    //   52: ifne +107 -> 159
    //   55: iconst_2
    //   56: istore 9
    //   58: aload_0
    //   59: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   62: invokevirtual 463	com/mob/commons/logcollector/d:f	()Ljava/lang/String;
    //   65: astore 10
    //   67: aload 10
    //   69: invokestatic 394	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   72: ifne +101 -> 173
    //   75: new 216	com/mob/tools/utils/Hashon
    //   78: dup
    //   79: invokespecial 217	com/mob/tools/utils/Hashon:<init>	()V
    //   82: aload 10
    //   84: invokevirtual 322	com/mob/tools/utils/Hashon:fromJson	(Ljava/lang/String;)Ljava/util/HashMap;
    //   87: ldc_w 402
    //   90: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   93: checkcast 192	java/util/ArrayList
    //   96: astore 28
    //   98: aload 28
    //   100: ifnull +73 -> 173
    //   103: aload 28
    //   105: invokevirtual 196	java/util/ArrayList:size	()I
    //   108: ifle +65 -> 173
    //   111: aload 28
    //   113: invokevirtual 467	java/util/ArrayList:iterator	()Ljava/util/Iterator;
    //   116: astore 29
    //   118: aload 29
    //   120: invokeinterface 472 1 0
    //   125: ifeq +48 -> 173
    //   128: aload 29
    //   130: invokeinterface 476 1 0
    //   135: checkcast 120	java/lang/String
    //   138: astore 30
    //   140: aload 30
    //   142: invokestatic 394	android/text/TextUtils:isEmpty	(Ljava/lang/CharSequence;)Z
    //   145: ifne -27 -> 118
    //   148: aload 8
    //   150: aload 30
    //   152: invokevirtual 479	java/lang/String:contains	(Ljava/lang/CharSequence;)Z
    //   155: ifeq -37 -> 118
    //   158: return
    //   159: aload_1
    //   160: getfield 461	android/os/Message:arg2	I
    //   163: iconst_2
    //   164: if_icmpne -106 -> 58
    //   167: iconst_1
    //   168: istore 9
    //   170: goto -112 -> 58
    //   173: aload_0
    //   174: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   177: invokevirtual 481	com/mob/commons/logcollector/d:c	()I
    //   180: istore 11
    //   182: aload_0
    //   183: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   186: invokevirtual 483	com/mob/commons/logcollector/d:d	()I
    //   189: istore 12
    //   191: aload_0
    //   192: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   195: invokevirtual 485	com/mob/commons/logcollector/d:e	()I
    //   198: istore 13
    //   200: iconst_3
    //   201: iload 9
    //   203: if_icmpne +291 -> 494
    //   206: iconst_m1
    //   207: iload 13
    //   209: if_icmpeq +284 -> 493
    //   212: goto +282 -> 494
    //   215: aload 8
    //   217: invokestatic 490	com/mob/tools/utils/Data:MD5	(Ljava/lang/String;)Ljava/lang/String;
    //   220: astore 14
    //   222: aload_0
    //   223: getfield 73	com/mob/commons/logcollector/c:i	Lcom/mob/tools/utils/FileLocker;
    //   226: aload_0
    //   227: getfield 86	com/mob/commons/logcollector/c:h	Ljava/io/File;
    //   230: invokevirtual 493	java/io/File:getAbsolutePath	()Ljava/lang/String;
    //   233: invokevirtual 496	com/mob/tools/utils/FileLocker:setLockFile	(Ljava/lang/String;)V
    //   236: aload_0
    //   237: getfield 73	com/mob/commons/logcollector/c:i	Lcom/mob/tools/utils/FileLocker;
    //   240: iconst_0
    //   241: invokevirtual 500	com/mob/tools/utils/FileLocker:lock	(Z)Z
    //   244: ifeq +32 -> 276
    //   247: invokestatic 353	java/lang/System:currentTimeMillis	()J
    //   250: aload_0
    //   251: getfield 63	com/mob/commons/logcollector/c:g	Lcom/mob/commons/logcollector/d;
    //   254: invokevirtual 502	com/mob/commons/logcollector/d:a	()J
    //   257: lsub
    //   258: lstore 24
    //   260: aload_0
    //   261: getfield 43	com/mob/commons/logcollector/c:d	Landroid/content/Context;
    //   264: lload 24
    //   266: aload 8
    //   268: iload 9
    //   270: aload 14
    //   272: invokestatic 505	com/mob/commons/logcollector/f:a	(Landroid/content/Context;JLjava/lang/String;ILjava/lang/String;)J
    //   275: pop2
    //   276: aload_0
    //   277: getfield 73	com/mob/commons/logcollector/c:i	Lcom/mob/tools/utils/FileLocker;
    //   280: invokevirtual 508	com/mob/tools/utils/FileLocker:release	()V
    //   283: aload_0
    //   284: getfield 68	com/mob/commons/logcollector/c:c	Ljava/util/HashMap;
    //   287: aload 14
    //   289: invokevirtual 511	java/util/HashMap:remove	(Ljava/lang/Object;)Ljava/lang/Object;
    //   292: pop
    //   293: iconst_3
    //   294: iload 9
    //   296: if_icmpne +120 -> 416
    //   299: iconst_1
    //   300: iload 13
    //   302: if_icmpne +114 -> 416
    //   305: iconst_1
    //   306: anewarray 120	java/lang/String
    //   309: astore 23
    //   311: aload 23
    //   313: iconst_0
    //   314: iconst_3
    //   315: invokestatic 302	java/lang/String:valueOf	(I)Ljava/lang/String;
    //   318: aastore
    //   319: aload_0
    //   320: iload 4
    //   322: aload 6
    //   324: aload 7
    //   326: aload 23
    //   328: invokespecial 421	com/mob/commons/logcollector/c:a	(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
    //   331: return
    //   332: astore_2
    //   333: invokestatic 106	com/mob/tools/MobLog:getInstance	()Lcom/mob/tools/log/NLog;
    //   336: aload_2
    //   337: invokevirtual 110	com/mob/tools/log/NLog:w	(Ljava/lang/Throwable;)I
    //   340: pop
    //   341: return
    //   342: astore 15
    //   344: aload_0
    //   345: getfield 68	com/mob/commons/logcollector/c:c	Ljava/util/HashMap;
    //   348: aload 14
    //   350: invokevirtual 341	java/util/HashMap:containsKey	(Ljava/lang/Object;)Z
    //   353: ifeq +168 -> 521
    //   356: aload_0
    //   357: getfield 68	com/mob/commons/logcollector/c:c	Ljava/util/HashMap;
    //   360: aload 14
    //   362: invokevirtual 329	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   365: checkcast 373	java/lang/Integer
    //   368: invokevirtual 514	java/lang/Integer:intValue	()I
    //   371: istore 16
    //   373: iload 16
    //   375: iconst_1
    //   376: iadd
    //   377: istore 17
    //   379: aload_0
    //   380: getfield 68	com/mob/commons/logcollector/c:c	Ljava/util/HashMap;
    //   383: aload 14
    //   385: iload 17
    //   387: invokestatic 426	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
    //   390: invokevirtual 214	java/util/HashMap:put	(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    //   393: pop
    //   394: iload 17
    //   396: iconst_3
    //   397: if_icmpge +9 -> 406
    //   400: aload_0
    //   401: aload_1
    //   402: invokespecial 516	com/mob/commons/logcollector/c:a	(Landroid/os/Message;)V
    //   405: return
    //   406: invokestatic 106	com/mob/tools/MobLog:getInstance	()Lcom/mob/tools/log/NLog;
    //   409: aload 15
    //   411: invokevirtual 110	com/mob/tools/log/NLog:w	(Ljava/lang/Throwable;)I
    //   414: pop
    //   415: return
    //   416: iconst_1
    //   417: iload 9
    //   419: if_icmpne +36 -> 455
    //   422: iconst_1
    //   423: iload 11
    //   425: if_icmpne +30 -> 455
    //   428: iconst_1
    //   429: anewarray 120	java/lang/String
    //   432: astore 22
    //   434: aload 22
    //   436: iconst_0
    //   437: iconst_1
    //   438: invokestatic 302	java/lang/String:valueOf	(I)Ljava/lang/String;
    //   441: aastore
    //   442: aload_0
    //   443: iload 4
    //   445: aload 6
    //   447: aload 7
    //   449: aload 22
    //   451: invokespecial 421	com/mob/commons/logcollector/c:a	(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
    //   454: return
    //   455: iconst_2
    //   456: iload 9
    //   458: if_icmpne +35 -> 493
    //   461: iconst_1
    //   462: iload 12
    //   464: if_icmpne +29 -> 493
    //   467: iconst_1
    //   468: anewarray 120	java/lang/String
    //   471: astore 21
    //   473: aload 21
    //   475: iconst_0
    //   476: iconst_2
    //   477: invokestatic 302	java/lang/String:valueOf	(I)Ljava/lang/String;
    //   480: aastore
    //   481: aload_0
    //   482: iload 4
    //   484: aload 6
    //   486: aload 7
    //   488: aload 21
    //   490: invokespecial 421	com/mob/commons/logcollector/c:a	(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V
    //   493: return
    //   494: iconst_1
    //   495: iload 9
    //   497: if_icmpne +9 -> 506
    //   500: iconst_m1
    //   501: iload 11
    //   503: if_icmpeq -10 -> 493
    //   506: iconst_2
    //   507: iload 9
    //   509: if_icmpne -294 -> 215
    //   512: iconst_m1
    //   513: iload 12
    //   515: if_icmpeq -22 -> 493
    //   518: goto -303 -> 215
    //   521: iconst_0
    //   522: istore 16
    //   524: goto -151 -> 373
    //
    // Exception table:
    //   from	to	target	type
    //   0	45	332	java/lang/Throwable
    //   48	55	332	java/lang/Throwable
    //   58	98	332	java/lang/Throwable
    //   103	118	332	java/lang/Throwable
    //   118	158	332	java/lang/Throwable
    //   159	167	332	java/lang/Throwable
    //   173	200	332	java/lang/Throwable
    //   215	222	332	java/lang/Throwable
    //   283	293	332	java/lang/Throwable
    //   305	331	332	java/lang/Throwable
    //   344	373	332	java/lang/Throwable
    //   379	394	332	java/lang/Throwable
    //   400	405	332	java/lang/Throwable
    //   406	415	332	java/lang/Throwable
    //   428	454	332	java/lang/Throwable
    //   467	493	332	java/lang/Throwable
    //   222	276	342	java/lang/Throwable
    //   276	283	342	java/lang/Throwable
  }

  public Context a()
  {
    return this.d;
  }

  public void a(int paramInt1, int paramInt2, String paramString1, String paramString2, String paramString3)
  {
    Message localMessage = new Message();
    localMessage.what = 101;
    localMessage.arg1 = paramInt1;
    localMessage.arg2 = paramInt2;
    localMessage.obj = new Object[] { paramString1, paramString2, paramString3 };
    this.handler.sendMessage(localMessage);
  }

  public void a(int paramInt, String paramString1, String paramString2)
  {
    Message localMessage = new Message();
    localMessage.what = 100;
    localMessage.arg1 = paramInt;
    localMessage.obj = new Object[] { paramString1, paramString2 };
    this.handler.sendMessage(localMessage);
  }

  public void b(int paramInt1, int paramInt2, String paramString1, String paramString2, String paramString3)
  {
    a(paramInt1, paramInt2, paramString1, paramString2, paramString3);
    try
    {
      this.handler.wait();
      return;
    }
    catch (Throwable localThrowable)
    {
    }
  }

  protected void onMessage(Message paramMessage)
  {
    switch (paramMessage.what)
    {
    default:
      return;
    case 100:
      b(paramMessage);
      return;
    case 101:
    }
    c(paramMessage);
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.mob.commons.logcollector.c
 * JD-Core Version:    0.6.2
 */